/**
 * Created by fanGe on 2019-02-21 09:44:57.
 * 自动生成
 */
const errorLog = {
  state: {
    errorLog: []
  },
  /**
   * 添加日志
   * @param {Object} log 日志
   * @returns {Void} void
   */
  pushLog (log) {
    this.state.errorLog.unshift(log)
  },
  /**
   * 清理日志
   * @returns {Void} void
   */
  clearLog () {
    this.state.errorLog = []
  }
}

export default errorLog // 导出为默认
